﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using Maticsoft.DBUtility;//请先添加引用

namespace BaoJian.Control
{
    public partial class DocList : System.Web.UI.UserControl
    {
        public string ColumnID = "";
        public int DocCount = 6;
        public int TitleLength = 0;
        public string Region = "beijing";
        protected void Page_Load(object sender, EventArgs e)
        {
            string sql;
            if (TitleLength == 0)
            {
                sql = "GetDafault '" + DocCount + "','" + ColumnID + "','" + Region + "'";
            }
            else
            {
                sql = "GetDafault '" + DocCount + "','" + ColumnID + "','" + Region + "','" + TitleLength + "'";
            }
           DataSet ds = DbHelperSQL.Query(sql);
           Repeater.DataSource = ds.Tables[0];
           Repeater.DataBind();   
        }
    }
}